<template>
    <div :class="'alease_title_left ' + bgStyle">
        <div class="title-text">
            <div>{{ props.title }}</div>
            <span>{{ props.subTitle }}</span>
        </div>
    </div>
</template>

<script lang="ts" setup>
const props = defineProps({
    title: {
        type: String,
        default: '设备状态'
    },
    subTitle: {
        type: String,
        default: ''
    },
    bgStyle: {
        type: String,
        default: 'base'
    }
})
</script>

<style lang="scss" scoped>
.alease_title_left {
    position: relative;
    font-family: Tencent;
    color: #ffffff;
    width: 100%;
    height: 65px;
    font-size: 33px;
    background: no-repeat;
    background-size: 100% 100%;

    text-shadow: 0 0px 5px rgba(118, 168, 200, 1);

    .title-text {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        padding-left: 70px;
        padding-bottom: 8px;
        font-family: Tencent, serif;
        color: #f6f8ff;
        letter-spacing: 1.6px;
        span {
            font-family: OPPOSans;
            font-size: 30px;
            margin-left: 20px;
            color: #ffffffa9;
            text-shadow: none;
        }
    }
}

.base {
    background-image: url('img/ModuleTitle_bg@2x.png');
}
.long {
    background-image: url('img/ModuleTitle_bg@2x_long.png');
}
.big {
    background-image: url('img/ModuleTitle_bg@2x_big.png');
    .title-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: auto;
    }
}
</style>
